package team.first.moiveapiv1.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import team.first.moiveapiv1.domain.Genre;
import team.first.moiveapiv1.domain.MovieGenre;
import team.first.moiveapiv1.mapper.MovieGenreMapper;
import team.first.moiveapiv1.service.MovieGenreService;

import java.util.List;

/**
 * @Author: HAPPY
 * @Project_name: project
 * @Package_name: team.first.moiveapiv1.service.impl
 * @Date: 2021/11/25 11:00
 * @Description：
 */
@Service
public class MovieGenreServiceImpl extends ServiceImpl<MovieGenreMapper, MovieGenre> implements MovieGenreService {

    @Autowired
    MovieGenreMapper movieGenreMapper;

    @Override
    public List<Genre> getGenreIdsByMovieId(Integer movieId) {
        return movieGenreMapper.selectGenreIdsByMovieId(movieId);
    }
}

